AC_INIT(mincc,0.0.5,bytbox@gmail.com)
AC_CONFIG_SRCDIR([src/main.cpp])

AC_CONFIG_HEADERS([src/config.h])

AC_ARG_ENABLE(test, [AS_HELP_STRING([--enable-test],
        [Compile for unit testing])],[test=true],[test=0])

AM_INIT_AUTOMAKE

CONFIG_DATE=`date "+%B %d %Y %T"`
CONFIG_STAMP=`date +%Y%m%d`

AM_CONDITIONAL([TEST],[test x$test = xtrue])

AC_DEFINE_UNQUOTED(TEST,${test},[define to be true only if you have compiled with cunit and want to run unit tests])
AC_DEFINE_UNQUOTED(CONFIG_DATE,"${CONFIG_DATE}",[define to be the date this program was configured])
AC_DEFINE_UNQUOTED(CONFIG_STAMP,"${CONFIG_STAMP}",[define to be the date this program was configured])

ACX_PTHREAD

MP_WITH_CURSES

AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_OUTPUT(Makefile src/Makefile)
